package com.recordhistory.config.mybatisPlus;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ：LX
 * 创建时间： 2019/5/17. 14:22
 * 地点：广州
 * 目的: MybatisPlus  配置
 * 备注说明：
 */
@EnableTransactionManagement
@Configuration
@MapperScan("com.recordhistory.dao")
public class MybatisPlusConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
